package com.hsq.db137.demos.seriver;

import com.hsq.db137.demos.entity.Rolemenu;
import com.hsq.db137.demos.entity.Userrole;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Author: hsq加油
 * @CreateTime: 2024/12/24-11:48
 * @Description: TODO
 * @Version: 1.0
 */
public interface UserroleService extends IService<Userrole> {

    //新增
    public String insertUserrole(Userrole userrole);

    //根据用户ID和角色ID删除这个用户的角色
    String delebyUseridAndRoleid(Userrole userrole);

    //根据用户ID和角色ID查询用户角色是否重复
    public boolean selectByRoleidAndUserid(int roleid, int userid);


}
